package com.ethink.order.common.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.util.Date;
import java.math.BigDecimal;
import com.ethink.framework.common.db.SuperEntity;

/**
 * TOB销售详单 数据库实体
 *
 * @author default
 * @date 2022-11-16
 */
@Data
@TableName("t_tob_sale_detail_order")
public class TobSaleDetailOrder extends SuperEntity {

    public static final String ORDER_NO ="order_no";

    public static final String DETAIL_ORDER_NO ="detail_order_no";

    public static final String MATE_INVENTORY_ID ="mate_inventory_id";

    public static final String MATE_SKU ="mate_sku";

    public static final String PURCHASE_CODE ="purchase_code";

    public static final String INVENTORY_TYPE ="inventory_type";

    public static final String PRODUCE_CODE ="produce_code";

    public static final String PURCHASE_ORDER_NO ="purchase_order_no";

    public static final String PURCHASE_DETAIL_ORDER_NO ="purchase_detail_order_no";

    public static final String MATE_CODE ="mate_code";

    public static final String MATE_NAME ="mate_name";

    public static final String MATE_SKU_NAME ="mate_sku_name";

    public static final String GENERA_CODE ="genera_code";

    public static final String GENERA_CODE_NAME ="genera_code_name";

    public static final String MINOR_DEFECTS_CODE ="minor_defects_code";

    public static final String MINOR_DEFECTS_CODE_NAME ="minor_defects_code_name";

    public static final String SUBCLASS_CODE ="subclass_code";

    public static final String SUBCLASS_CODE_NAME ="subclass_code_name";

    public static final String CATEGORY_NAME ="category_name";

    public static final String BRAND_CODE ="brand_code";

    public static final String BRAND_NAME ="brand_name";

    public static final String INTERNATION_CODE ="internation_code";

    public static final String UNIT_CODE ="unit_code";

    public static final String UNIT_NAME ="unit_name";

    public static final String PRODUCT_SPECIFICATION ="product_specification";

    public static final String PRODUCT_DATE ="product_date";

    public static final String EXPIRE_DATE ="expire_date";

    public static final String COST_PRICE ="cost_price";

    public static final String QTY ="qty";

    public static final String SALE_PRICE ="sale_price";

    public static final String GROSS_PROFIT_RATE ="gross_profit_rate";

    public static final String SETTLE_QTY ="settle_qty";

    public static final String IS_SETTLE ="is_settle";


    /** TOB销售单号 */
    private String orderNo;

    /** TOB销售详单号 */
    private String detailOrderNo;

    /** 库存ID */
    private Long mateInventoryId;

    /** 商品SKU */
    private String mateSku;

    /** 采购批次 */
    private String purchaseCode;

    /** 枚举 库存类型:1-正品(zp)|2-瑕疵(cc) */
    private Integer inventoryType;

    /** 生产批次 */
    private String produceCode;

    /** 采购批次 */
    private String purchaseOrderNo;

    /** 采购详单号 */
    private String purchaseDetailOrderNo;

    /** 商品编码 */
    private String mateCode;

    /** 商品名称 */
    private String mateName;

    /** 商品SKU名称 */
    private String mateSkuName;

    /** 大类编号 */
    private String generaCode;

    /** 大类编号名称 */
    private String generaCodeName;

    /** 中类编号 */
    private String minorDefectsCode;

    /** 中类编号名称 */
    private String minorDefectsCodeName;

    /** 小类编号 */
    private String subclassCode;

    /** 小类编号名称 */
    private String subclassCodeName;

    /** 商品分类 */
    private String categoryName;

    /** 品牌编码 */
    private String brandCode;

    /** 品牌名称 */
    private String brandName;

    /** 商品条码 */
    private String internationCode;

    /** 包装单位编码 */
    private String unitCode;

    /** 包装单位编码 */
    private String unitName;

    /** 商品规格 */
    private String productSpecification;

    /** 商品生产日期 */
    private Date productDate;

    /** 商品过期日期 */
    private Date expireDate;

    /** 成本单价 */
    private BigDecimal costPrice;

    /** 数量 */
    private Integer qty;

    /** 销售价 */
    private BigDecimal salePrice;

    /** 毛利率 */
    private BigDecimal grossProfitRate;

    /** 结算数量 */
    private Integer settleQty;

    /** 是否结算(0:未结算 1:已结算) */
    private Integer isSettle;
}
